package com.isunland.managesystem.base;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author 王亚南
 * @date 2015/10/2
 * @email ynwang@126.com
 */

/**
 * 解析基础类 服务端返回统一数据格式，解析的时候继承这个类
 *
 * @param <T>
 */
public class BaseEntity<T> implements Serializable {
  public static final String SUCCESS = "1";
  public static final String failure = "0";
  private String total;
  private String result;
  private String message;
  private String cause;
  private String page;
  private String pageSize;
  private ArrayList<T> rows = new ArrayList<>();
  private ArrayList<T> data = new ArrayList<>();

  public BaseEntity() {
  }

  public String getTotal() {
    return total;
  }

  public void setTotal(String total) {
    this.total = total;
  }

  public String getResult() {
    return result;
  }

  public void setResult(String result) {
    this.result = result;
  }

  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }

  public ArrayList<T> getRows() {
    return rows;
  }

  public void setRows(ArrayList<T> rows) {
    this.rows = rows;
  }

  public List<T> getData() {
    return data;
  }

  public void setData(ArrayList<T> data) {
    this.data = data;
  }

  public String getPageSize() {
    return pageSize;
  }

  public void setPageSize(String pageSize) {
    this.pageSize = pageSize;
  }

  public String getCause() {
    return cause;
  }

  public void setCause(String cause) {
    this.cause = cause;
  }

  public String getPage() {
    return page;
  }

  public void setPage(String page) {
    this.page = page;
  }
}
